package base.dao;

import javax.servlet.ServletContext;

import base.helper.SpringHelper;

public class CommonDao extends BaseExtendDao<Object>
{
	@SuppressWarnings("unchecked")
	public static CommonDao getInstance(Class clazz, ServletContext servletContext)
	{
		CommonDao dao = (CommonDao) SpringHelper.getBean("commonDao", servletContext);
		dao.setEntityClass(clazz);
		return dao;
	}
}
